﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using ScreenMonkey.Clips;
using ScreenMonkey.Clips.Extensions;


namespace ScreenMonkey.Plugin.Clips.SMHelloWorld
{
    public class SMHelloWorldClip : ClipMediaBase, ITransparentOverlay 
    {
        private Label mainOutput = null;
        private Color colorKeyValue = Color.FromArgb(255, 255, 17, 17);

        public override string TypeName
        {
            get { return "Your Clip"; }
        }

        public override string Caption
        {
            get { return "This will be shown as my legend"; }
        }

        public override string Description
        {
            get { return "Gives a description of what this clip does. Displays 'Hello World' on the screen."; }
        }

        public Color ColorKey
        {
            get { return colorKeyValue; }
            set { colorKeyValue = value; }
        }
        
        [Obsolete]
        protected override void OnInitialiseShow()
        {
            mainOutput = new Label();
            mainOutput.BackColor = colorKeyValue;
            mainOutput.ForeColor = Color.Yellow;
            mainOutput.TextAlign = ContentAlignment.MiddleCenter;
            mainOutput.Font = new Font("Verdana", 240, FontStyle.Bold, GraphicsUnit.Pixel);
            mainOutput.Text = "10:00";
        }

        public override void StopShow()
        {
            mainOutput = null;
        }

        public override Control MainOutput
        {
            get
            {
                return mainOutput;
            }
        }
    }
}
